package qc.module.ehs.mapper;

import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import qc.module.ehs.dto.hazard.EhsHazardBasicDto;
import qc.module.ehs.entity.EhsHazardBasic;

import java.util.List;

/**
 * EhsHazardBasicMapper
 *
 * @author QuCheng Tech
 * @create 2024/6/13
 */
@Mapper
public interface EhsHazardBasicMapper {
    EhsHazardBasicMapper MAPPER = Mappers.getMapper(EhsHazardBasicMapper.class);
    
    EhsHazardBasic toEntity(EhsHazardBasicDto dto);

    EhsHazardBasicDto toDto(EhsHazardBasic entity);
    
    List<EhsHazardBasicDto> toDtoList(List<EhsHazardBasic> ens);
}
